//
//  RandomController.m
//  <1>Random
//
//  Created by chen on 16/9/7.
//  Copyright © 2016年 tyrad. All rights reserved.
//

#import "RandomController.h"

@implementation RandomController


//载入Nib文件,Nib文件中的每一个对象都会收到awakeFromNib消息

- (void)awakeFromNib{
    
    NSDate *date = [NSDate date];
    
    NSLog(@"%@",date);
    
    [textFeild setObjectValue:date];
}


- (IBAction)button_A_Click:(id)sender {
    
    NSLog(@"%s",__func__);
    
    NSString *string = [NSString stringWithFormat:@"%@",@(arc4random()%2000)];
    
    [textFeild setStringValue:string];
    
}

- (IBAction)button_B_Click:(id)sender {
    NSLog(@"%s",__func__); 
    NSString *string = [NSString stringWithFormat:@"%@",@(arc4random()%2000)];
    [textFeild setStringValue:string];

}

@end
